﻿using Microsoft.AspNetCore.Mvc.Filters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace coreEntityFramework.Extend
{
    /// <summary>
    /// 方法级的filter
    /// </summary>
    public class AuditLogFilter : IActionFilter
    {
        public void OnActionExecuted(ActionExecutedContext context)
        {
            var s = $@"context数据{context.Controller.ToString()}";
        }

        public void OnActionExecuting(ActionExecutingContext context)
        {
            var s = $@"context数据{context.Result}";
        }
    }
}
